<%-- 
    Document   : disciplinas
    Created on : 23/05/2013, 14:40:07
    Author     : Eduardo
--%>

<%@page import="java.net.URL"%>
<%@page import="java.util.List"%>
<%@page import="java.sql.*" %> 
<%@page import="java.io.*" %>
<%@page import="Model.*"%>
<%@page import="Controller.*"%>
<%
    String pg = null;
    String pag = null;
    if (session.getAttribute("pg") == null) {
        pg = "home.jsp";
        pag = "home";
    } else {
        pg = session.getAttribute("pg").toString();
        pag = pg.replace(".jsp", "");
    }
%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>Alocação de Recursos</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Bootstrap -->
        <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link href="css/bootstrap-responsive.css" rel="stylesheet" media="screen">
        <style>
            body {padding-top:70px !important;}
        </style>
    </head>
    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="#">DELC</a>
                    <div class="nav-collapse collapse">
                        <p class="navbar-text pull-right">
                            <%
                                if (session.getAttribute("type").equals("diretor")) {
                                    out.print("Diretor(a)");
                                }
                                if (session.getAttribute("type").equals("professor")) {
                                    out.print("Professor(a)");
                                }
                                if (session.getAttribute("type").equals("cordenador")) {
                                    out.print("Cordenador(a)");
                                }
                            %> / <a href="#" class="navbar-link"><% out.print(session.getAttribute("nome"));%></a>
                        </p>
                        <ul class="nav">
                            <li class="active"><a href="#">Home</a></li>
                            <li><a href="perfil.php">Editar perfil</a></li>
                            <li><a href="dados.php">Editar dados</a></li> 
                        </ul>
                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span2">
                    <div class="well sidebar-nav">        
                        <ul class="nav nav-list">
                            <li class="nav-header">Menu</li>
                            <li <%if (pag.equals("professores")) {
                                    out.print("class='active'");
                                }%> >
                                <a href="professores">Professores</a>
                            </li>
                            <li <%if (pag.equals("disciplinas")) {
                                    out.print("class='active'");
                                }%> >
                                <a href="disciplinas">Disciplinas</a>
                            </li>
                            <li>
                                <a href="salas">Salas</a>
                            </li>
                            <li>
                                <a href="horarios">Horários</a>
                            </li>
                            <li>
                                <a href="info">Informações</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="span10">          
                    <jsp:include page='<%= pg%>' />
                </div>
            </div>
            <hr/>
            <div class="footer">
                <p>© DELC 2013</p>
            </div>
            <script src="js/jquery.js"></script>
            <script src="js/bootstrap.min.js"></script>    
        </div>
    </body>
</html>



